package com.panshi.qa.provider.modules.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.panshi.qa.provider.modules.domain.QaQuestionUncheck;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface QaQuestionUncheckMapper extends BaseMapper<QaQuestionUncheck> {
    //添加问题
    int insertQuestion(QaQuestionUncheck qaQuestionUncheck);
    //添加动态表
    int insertUserDynamic(QaQuestionUncheck qaQuestionUncheck);
    //添加搜索表
    int insertThSearch(@Param("qaQuestionUncheck") QaQuestionUncheck qaQuestionUncheck, @Param("typeName") String typeName);
    //添加站内消息表
    int insertUserNotice(QaQuestionUncheck qaQuestionUncheck);
    //删除动态表中未审核的问题
    int deleteUserDynamic(@Param("id") int id, @Param("value") String value);
     //查询用户ID下的邮箱
    String queryUserEmail(int id);
}
